package com.fire.chat.entity.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @program: hxzq
 * @description: 角色业务对象
 * @author: xjr
 * @create: 2020-11-09 09:30
 **/
@Data
@NoArgsConstructor
@ApiModel(value = "角色业务对象",description = "角色新增编辑")
public class SysRoleBO  implements Serializable {
    @ApiModelProperty(value = "角色ID",notes = "编辑必传")
    private Long id;

    @ApiModelProperty("角色编码")
    @NotEmpty(message = "角色编码不得为空")
    private String code;

    @ApiModelProperty("角色名字")
    @NotEmpty(message = "角色名字不得为空")
    private String name;

    @ApiModelProperty(value = "逻辑删除字段 0:未删除 1：已删除",example = "0")
    @NotNull
    private Integer isDelete;

    @ApiModelProperty("拥有的菜单资源id列表")
    private List<Long> menus;

    

}
